

package com.coding4play.mqtt.common.entity.message;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * PUBLISH控制报文是指从客户端向服务端或者服务端向客户端传输一个应用消息。
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DupPublishMessage implements Serializable {

    private static final long serialVersionUID = -8112511377194421600L;

    private String clientId;

    private String topic;

    private Integer mqttQoS;

    private Integer messageId;

    private byte[] messageBytes;


}
